home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MCLUTILS.CPT / oodles-of-utils / low-class-extensions / simple-view-ce.lisp < prev    next >
MacBinary  |  1991-10-24  |  5.0 KB  |  [TEXT/CCL2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Oct 24 10:19:51 1991, modified Thu Oct 24 10:19:51 1991, creator Common Lisp 2, type ASCII, 4475 bytes "simple-view-ce.lisp" , at 0x11fb 416 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 73 69 6d 70 6c 65 | 2d 76 69 65 77 2d 63 65 |..simple|-view-ce|
|00000010| 2e 6c 69 73 70 00 00 00 | 00 00 00 00 00 00 00 00 |.lisp...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 00 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 11 7b 00 | 00 01 a0 a5 2c 87 07 a5 |......{.|....,...|
|00000060| 2c 87 07 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |,.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 aa 50 00 00 |........|.....P..|
|00000080| 28 69 6e 2d 70 61 63 6b | 61 67 65 20 3a 6f 6f 75 |(in-pack|age :oou|
|00000090| 29 0d 28 70 72 6f 76 69 | 64 65 20 3a 73 69 6d 70 |).(provi|de :simp|
|000000a0| 6c 65 2d 76 69 65 77 2d | 63 65 29 0d 3b 3b 3b 3b |le-view-|ce).;;;;|
|000000b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000f0| 3b 3b 0d 3b 3b 20 73 69 | 6d 70 6c 65 2d 76 69 65 |;;.;; si|mple-vie|
|00000100| 77 2d 63 65 2e 4c 69 73 | 70 0d 3b 3b 0d 3b 3b 20 |w-ce.Lis|p.;;.;; |
|00000110| 43 6f 70 79 72 69 67 68 | 74 20 a9 20 31 39 39 31 |Copyrigh|t . 1991|
|00000120| 20 4e 6f 72 74 68 77 65 | 73 74 65 72 6e 20 55 6e | Northwe|stern Un|
|00000130| 69 76 65 72 73 69 74 79 | 20 49 6e 73 74 69 74 75 |iversity| Institu|
|00000140| 74 65 20 66 6f 72 20 74 | 68 65 20 4c 65 61 72 6e |te for t|he Learn|
|00000150| 69 6e 67 20 53 63 69 65 | 6e 63 65 73 0d 3b 3b 20 |ing Scie|nces.;; |
|00000160| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000170| 76 65 64 0d 3b 3b 0d 3b | 3b 20 61 75 74 68 6f 72 |ved.;;.;|; author|
|00000180| 3a 20 4d 69 63 68 61 65 | 6c 20 53 2e 20 45 6e 67 |: Michae|l S. Eng|
|00000190| 62 65 72 0d 3b 3b 0d 3b | 3b 20 6d 65 74 68 6f 64 |ber.;;.;|; method|
|000001a0| 73 20 66 6f 72 20 74 68 | 65 20 76 69 65 77 20 63 |s for th|e view c|
|000001b0| 6c 61 73 73 0d 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |lass.;;;|;;;;;;;;|
|000001c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 0d 0d 28 6f 6f |;;;;;;;;|;;;..(oo|
|00000200| 75 2d 64 65 70 65 6e 64 | 65 6e 63 69 65 73 0d 20 |u-depend|encies. |
|00000210| 29 0d 0d 28 65 78 70 6f | 72 74 20 27 28 66 6f 63 |)..(expo|rt '(foc|
|00000220| 75 73 69 6e 67 2d 76 69 | 65 77 20 66 6f 63 75 73 |using-vi|ew focus|
|00000230| 65 64 2d 63 6f 72 6e 65 | 72 73 0d 20 20 20 20 20 |ed-corne|rs. |
|00000240| 20 20 20 20 20 6f 66 66 | 73 65 74 2d 76 69 65 77 | off|set-view|
|00000250| 2d 70 6f 73 69 74 69 6f | 6e 0d 20 20 20 20 20 20 |-positio|n. |
|00000260| 20 20 20 20 65 72 61 73 | 65 2d 63 6f 72 6e 65 72 | eras|e-corner|
|00000270| 73 20 65 72 61 73 65 2d | 76 69 65 77 0d 20 20 20 |s erase-|view. |
|00000280| 20 20 20 20 20 20 20 76 | 69 65 77 2d 74 6f 2d 67 | v|iew-to-g|
|00000290| 6c 6f 62 61 6c 20 67 6c | 6f 62 61 6c 2d 74 6f 2d |lobal gl|obal-to-|
|000002a0| 76 69 65 77 20 76 69 65 | 77 2d 67 6c 6f 62 61 6c |view vie|w-global|
|000002b0| 2d 63 6f 72 6e 65 72 73 | 0d 20 20 20 20 20 20 20 |-corners|. |
|000002c0| 20 20 20 2a 57 4d 67 72 | 2d 76 69 65 77 2a 0d 20 | *WMgr|-view*. |
|000002d0| 20 20 20 20 20 20 20 20 | 20 29 29 0d 0d 3b 3b 3b | | ))..;;;|
|000002e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000300| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000310| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000320| 3b 3b 3b 0d 0d 0d 28 64 | 65 66 6d 65 74 68 6f 64 |;;;...(d|efmethod|
|00000330| 20 66 6f 63 75 73 69 6e | 67 2d 76 69 65 77 20 28 | focusin|g-view (|
|00000340| 28 73 76 20 73 69 6d 70 | 6c 65 2d 76 69 65 77 29 |(sv simp|le-view)|
|00000350| 29 20 28 76 69 65 77 2d | 63 6f 6e 74 61 69 6e 65 |) (view-|containe|
|00000360| 72 20 73 76 29 29 0d 28 | 64 65 66 6d 65 74 68 6f |r sv)).(|defmetho|
|00000370| 64 20 66 6f 63 75 73 69 | 6e 67 2d 76 69 65 77 20 |d focusi|ng-view |
|00000380| 28 28 76 20 76 69 65 77 | 29 29 20 76 29 0d 0d 28 |((v view|)) v)..(|
|00000390| 64 65 66 6d 65 74 68 6f | 64 20 66 6f 63 75 73 65 |defmetho|d focuse|
|000003a0| 64 2d 63 6f 72 6e 65 72 | 73 20 28 28 73 76 20 73 |d-corner|s ((sv s|
|000003b0| 69 6d 70 6c 65 2d 76 69 | 65 77 29 29 20 28 76 69 |imple-vi|ew)) (vi|
|000003c0| 65 77 2d 63 6f 72 6e 65 | 72 73 20 73 76 29 29 0d |ew-corne|rs sv)).|
|000003d0| 28 64 65 66 6d 65 74 68 | 6f 64 20 66 6f 63 75 73 |(defmeth|od focus|
|000003e0| 65 64 2d 63 6f 72 6e 65 | 72 73 20 28 28 76 20 76 |ed-corne|rs ((v v|
|000003f0| 69 65 77 29 29 20 20 20 | 20 20 20 20 20 20 28 76 |iew)) | (v|
|00000400| 61 6c 75 65 73 20 23 40 | 28 30 20 30 29 20 28 76 |alues #@|(0 0) (v|
|00000410| 69 65 77 2d 73 69 7a 65 | 20 76 29 29 29 0d 0d 28 |iew-size| v)))..(|
|00000420| 64 65 66 6d 65 74 68 6f | 64 20 6f 66 66 73 65 74 |defmetho|d offset|
|00000430| 2d 76 69 65 77 2d 70 6f | 73 69 74 69 6f 6e 20 28 |-view-po|sition (|
|00000440| 28 73 76 20 73 69 6d 70 | 6c 65 2d 76 69 65 77 29 |(sv simp|le-view)|
|00000450| 20 68 20 26 6f 70 74 69 | 6f 6e 61 6c 20 76 29 0d | h &opti|onal v).|
|00000460| 20 20 22 73 76 20 68 20 | 26 6f 70 74 69 6f 6e 61 | "sv h |&optiona|
|00000470| 6c 20 76 0d 4f 66 66 73 | 65 74 73 20 74 68 65 20 |l v.Offs|ets the |
|00000480| 76 69 65 77 73 27 73 20 | 70 6f 73 69 74 69 6f 6e |views's |position|
|00000490| 20 62 79 20 74 68 65 20 | 73 70 65 63 69 66 69 65 | by the |specifie|
|000004a0| 64 20 61 6d 6f 75 6e 74 | 2e 22 0d 20 20 28 73 65 |d amount|.". (se|
|000004b0| 74 2d 76 69 65 77 2d 70 | 6f 73 69 74 69 6f 6e 20 |t-view-p|osition |
|000004c0| 73 76 20 28 61 64 64 2d | 70 6f 69 6e 74 73 20 28 |sv (add-|points (|
|000004d0| 76 69 65 77 2d 70 6f 73 | 69 74 69 6f 6e 20 73 76 |view-pos|ition sv|
|000004e0| 29 20 28 6d 61 6b 65 2d | 70 6f 69 6e 74 20 68 20 |) (make-|point h |
|000004f0| 76 29 29 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |v))))..(|defmetho|
|00000500| 64 20 65 72 61 73 65 2d | 63 6f 72 6e 65 72 73 20 |d erase-|corners |
|00000510| 28 28 73 76 20 73 69 6d | 70 6c 65 2d 76 69 65 77 |((sv sim|ple-view|
|00000520| 29 20 74 6f 70 4c 65 66 | 74 20 62 6f 74 52 69 67 |) topLef|t botRig|
|00000530| 68 74 29 0d 20 20 28 72 | 6c 65 74 20 28 28 72 20 |ht). (r|let ((r |
|00000540| 3a 52 65 63 74 20 3a 74 | 6f 70 4c 65 66 74 20 74 |:Rect :t|opLeft t|
|00000550| 6f 70 4c 65 66 74 20 3a | 62 6f 74 52 69 67 68 74 |opLeft :|botRight|
|00000560| 20 62 6f 74 52 69 67 68 | 74 29 29 0d 20 20 20 20 | botRigh|t)). |
|00000570| 28 77 69 74 68 2d 6d 61 | 63 70 74 72 73 20 28 28 |(with-ma|cptrs ((|
|00000580| 72 67 6e 20 28 23 5f 4e | 65 77 52 67 6e 29 29 29 |rgn (#_N|ewRgn)))|
|00000590| 0d 20 20 20 20 20 20 28 | 23 5f 52 65 63 74 52 67 |. (|#_RectRg|
|000005a0| 6e 20 72 67 6e 20 72 29 | 0d 20 20 20 20 20 20 28 |n rgn r)|. (|
|000005b0| 6c 65 74 20 28 28 65 72 | 61 73 65 2d 72 67 6e 20 |let ((er|ase-rgn |
|000005c0| 28 77 69 6e 64 6f 77 2d | 65 72 61 73 65 2d 72 65 |(window-|erase-re|
|000005d0| 67 69 6f 6e 20 28 76 69 | 65 77 2d 77 69 6e 64 6f |gion (vi|ew-windo|
|000005e0| 77 20 73 76 29 29 29 29 | 0d 20 20 20 20 20 20 20 |w sv))))|. |
|000005f0| 20 28 23 5f 55 6e 69 6f | 6e 52 67 6e 20 72 67 6e | (#_Unio|nRgn rgn|
|00000600| 20 65 72 61 73 65 2d 72 | 67 6e 20 65 72 61 73 65 | erase-r|gn erase|
|00000610| 2d 72 67 6e 29 29 0d 20 | 20 20 20 20 20 28 23 5f |-rgn)). | (#_|
|00000620| 44 69 73 70 6f 73 65 52 | 67 6e 20 72 67 6e 29 29 |DisposeR|gn rgn))|
|00000630| 29 29 0d 0d 28 64 65 66 | 6d 65 74 68 6f 64 20 65 |))..(def|method e|
|00000640| 72 61 73 65 2d 76 69 65 | 77 20 28 28 73 76 20 73 |rase-vie|w ((sv s|
|00000650| 69 6d 70 6c 65 2d 76 69 | 65 77 29 29 0d 20 20 28 |imple-vi|ew)). (|
|00000660| 6d 75 6c 74 69 70 6c 65 | 2d 76 61 6c 75 65 2d 63 |multiple|-value-c|
|00000670| 61 6c 6c 20 23 27 65 72 | 61 73 65 2d 63 6f 72 6e |all #'er|ase-corn|
|00000680| 65 72 73 20 73 76 20 28 | 76 69 65 77 2d 63 6f 72 |ers sv (|view-cor|
|00000690| 6e 65 72 73 20 73 76 29 | 29 29 0d 0d 3b 3b 20 54 |ners sv)|))..;; T|
|000006a0| 68 65 73 65 20 61 72 65 | 20 73 70 65 63 69 61 6c |hese are| special|
|000006b0| 20 70 75 72 70 6f 73 65 | 20 66 75 6e 63 74 69 6f | purpose| functio|
|000006c0| 6e 73 20 66 6f 72 20 75 | 73 65 20 69 6e 20 64 65 |ns for u|se in de|
|000006d0| 73 69 67 6e 69 6e 67 20 | 6e 65 77 0d 3b 3b 20 63 |signing |new.;; c|
|000006e0| 6c 61 73 73 65 73 2e 20 | 54 68 65 79 20 77 65 72 |lasses. |They wer|
|000006f0| 65 20 64 65 73 69 67 6e | 65 64 20 77 69 74 68 20 |e design|ed with |
|00000700| 65 66 66 69 63 69 65 6e | 63 79 20 69 6e 20 6d 69 |efficien|cy in mi|
|00000710| 6e 64 2c 20 72 61 74 68 | 65 72 0d 3b 3b 20 74 68 |nd, rath|er.;; th|
|00000720| 61 6e 20 72 6f 62 75 73 | 74 6e 65 73 73 2e 0d 0d |an robus|tness...|
|00000730| 3b 3b 4e 6f 74 65 3a 20 | 74 68 65 79 20 64 6f 20 |;;Note: |they do |
|00000740| 6e 6f 74 20 66 6f 63 75 | 73 20 74 68 65 20 63 75 |not focu|s the cu|
|00000750| 72 72 65 6e 74 20 76 69 | 65 77 2e 20 54 68 65 79 |rrent vi|ew. They|
|00000760| 27 72 65 20 69 6e 74 65 | 6e 64 65 64 0d 3b 3b 74 |'re inte|nded.;;t|
|00000770| 6f 20 62 65 20 75 73 65 | 64 20 69 6e 20 73 70 65 |o be use|d in spe|
|00000780| 63 69 61 6c 69 7a 69 6e | 67 20 6d 65 74 68 6f 64 |cializin|g method|
|00000790| 73 20 28 6c 69 6b 65 20 | 76 69 65 77 2d 64 72 61 |s (like |view-dra|
|000007a0| 77 2d 63 6f 6e 74 65 6e | 74 73 29 0d 3b 3b 77 68 |w-conten|ts).;;wh|
|000007b0| 69 63 68 20 74 61 6b 65 | 20 63 61 72 65 20 6f 66 |ich take| care of|
|000007c0| 20 66 6f 63 75 73 73 69 | 6e 67 20 74 68 65 20 63 | focussi|ng the c|
|000007d0| 75 72 72 65 6e 74 20 76 | 69 65 77 2e 20 46 6f 72 |urrent v|iew. For|
|000007e0| 20 73 69 6d 70 6c 65 20 | 76 69 65 77 73 0d 3b 3b | simple |views.;;|
|000007f0| 69 74 20 62 65 20 66 6f | 63 75 73 65 64 20 74 6f |it be fo|cused to|
|00000800| 20 76 69 65 77 27 73 20 | 63 6f 6e 74 61 69 6e 65 | view's |containe|
|00000810| 72 2e 20 46 6f 72 20 76 | 69 65 77 73 20 69 74 20 |r. For v|iews it |
|00000820| 73 68 6f 75 6c 64 20 62 | 65 20 66 6f 63 75 73 65 |should b|e focuse|
|00000830| 64 0d 3b 3b 74 6f 20 74 | 68 65 20 76 69 65 77 2e |d.;;to t|he view.|
|00000840| 0d 0d 3b 3b 20 48 69 6c | 69 74 69 6e 67 20 61 6e |..;; Hil|iting an|
|00000850| 20 61 6c 72 65 61 64 79 | 20 68 69 6c 69 74 65 64 | already| hilited|
|00000860| 20 76 69 65 77 20 6f 72 | 20 75 6e 2d 68 69 6c 69 | view or| un-hili|
|00000870| 74 69 6e 67 20 61 20 76 | 69 65 77 20 74 68 61 74 |ting a v|iew that|
|00000880| 27 73 0d 3b 3b 20 6e 6f | 74 20 68 69 6c 69 74 65 |'s.;; no|t hilite|
|00000890| 64 20 77 69 6c 6c 20 6e | 6f 74 20 77 6f 72 6b 20 |d will n|ot work |
|000008a0| 77 69 74 68 20 74 68 65 | 73 65 20 64 65 66 61 75 |with the|se defau|
|000008b0| 6c 74 20 66 6e 73 2e 0d | 3b 3b 0d 0d 28 64 65 66 |lt fns..|;;..(def|
|000008c0| 6d 65 74 68 6f 64 20 68 | 69 6c 69 74 65 2d 76 69 |method h|ilite-vi|
|000008d0| 65 77 20 28 28 73 76 20 | 73 69 6d 70 6c 65 2d 76 |ew ((sv |simple-v|
|000008e0| 69 65 77 29 20 68 69 6c | 69 74 65 2d 66 6c 61 67 |iew) hil|ite-flag|
|000008f0| 29 0d 20 20 22 73 76 20 | 68 69 6c 69 74 65 2d 66 |). "sv |hilite-f|
|00000900| 6c 61 67 0d 48 69 6c 69 | 74 65 73 20 74 68 65 20 |lag.Hili|tes the |
|00000910| 73 70 65 63 69 66 69 65 | 64 20 76 69 65 77 2e 20 |specifie|d view. |
|00000920| 53 70 65 63 69 61 6c 69 | 7a 61 74 69 6f 6e 73 20 |Speciali|zations |
|00000930| 6d 61 79 20 75 73 65 20 | 68 69 6c 69 74 65 2d 66 |may use |hilite-f|
|00000940| 6c 61 67 0d 74 6f 20 74 | 65 6c 6c 20 77 68 65 74 |lag.to t|ell whet|
|00000950| 68 65 72 20 74 6f 20 68 | 69 6c 69 74 65 20 6f 72 |her to h|ilite or|
|00000960| 20 75 6e 2d 68 69 6c 69 | 74 65 20 74 68 65 20 69 | un-hili|te the i|
|00000970| 74 65 6d 20 28 74 2f 6e | 69 6c 29 2e 20 49 74 20 |tem (t/n|il). It |
|00000980| 69 73 0d 6e 6f 74 20 75 | 73 65 64 20 68 65 72 65 |is.not u|sed here|
|00000990| 20 62 65 63 61 75 73 65 | 20 49 6e 76 65 72 74 52 | because| InvertR|
|000009a0| 65 63 74 20 69 73 20 72 | 65 76 65 72 73 61 62 6c |ect is r|eversabl|
|000009b0| 65 2e 22 20 0d 20 20 28 | 64 65 63 6c 61 72 65 20 |e." . (|declare |
|000009c0| 28 69 67 6e 6f 72 65 20 | 68 69 6c 69 74 65 2d 66 |(ignore |hilite-f|
|000009d0| 6c 61 67 29 29 0d 20 20 | 28 6d 75 6c 74 69 70 6c |lag)). |(multipl|
|000009e0| 65 2d 76 61 6c 75 65 2d | 62 69 6e 64 20 28 74 6f |e-value-|bind (to|
|000009f0| 70 4c 65 66 74 20 62 6f | 74 52 69 67 68 74 29 20 |pLeft bo|tRight) |
|00000a00| 28 76 69 65 77 2d 63 6f | 72 6e 65 72 73 20 73 76 |(view-co|rners sv|
|00000a10| 29 0d 20 20 20 20 28 72 | 6c 65 74 20 28 28 72 20 |). (r|let ((r |
|00000a20| 3a 52 65 63 74 20 3a 74 | 6f 70 4c 65 66 74 20 74 |:Rect :t|opLeft t|
|00000a30| 6f 70 4c 65 66 74 20 3a | 62 6f 74 52 69 67 68 74 |opLeft :|botRight|
|00000a40| 20 62 6f 74 52 69 67 68 | 74 29 29 0d 20 20 20 20 | botRigh|t)). |
|00000a50| 20 20 28 23 5f 42 69 74 | 43 6c 72 20 28 25 69 6e | (#_Bit|Clr (%in|
|00000a60| 74 2d 74 6f 2d 70 74 72 | 20 23 24 68 69 6c 69 74 |t-to-ptr| #$hilit|
|00000a70| 65 4d 6f 64 65 29 20 23 | 2e 23 24 70 48 69 6c 69 |eMode) #|.#$pHili|
|00000a80| 74 65 42 69 74 29 0d 20 | 20 20 20 20 20 28 23 5f |teBit). | (#_|
|00000a90| 49 6e 76 65 72 74 52 65 | 63 74 20 72 29 29 29 29 |InvertRe|ct r))))|
|00000aa0| 0d 0d 28 64 65 66 6d 65 | 74 68 6f 64 20 68 69 6c |..(defme|thod hil|
|00000ab0| 69 74 65 2d 76 69 65 77 | 20 28 28 76 20 76 69 65 |ite-view| ((v vie|
|00000ac0| 77 29 20 68 69 6c 69 74 | 65 2d 66 6c 61 67 29 0d |w) hilit|e-flag).|
|00000ad0| 20 20 22 76 20 68 69 6c | 69 74 65 2d 66 6c 61 67 | "v hil|ite-flag|
|00000ae0| 22 20 0d 20 20 28 64 65 | 63 6c 61 72 65 20 28 69 |" . (de|clare (i|
|00000af0| 67 6e 6f 72 65 20 68 69 | 6c 69 74 65 2d 66 6c 61 |gnore hi|lite-fla|
|00000b00| 67 29 29 0d 20 20 28 72 | 6c 65 74 20 28 28 72 20 |g)). (r|let ((r |
|00000b10| 3a 52 65 63 74 20 3a 74 | 6f 70 4c 65 66 74 20 23 |:Rect :t|opLeft #|
|00000b20| 40 28 30 20 30 29 20 3a | 62 6f 74 52 69 67 68 74 |@(0 0) :|botRight|
|00000b30| 20 28 76 69 65 77 2d 73 | 69 7a 65 20 76 29 29 29 | (view-s|ize v)))|
|00000b40| 0d 20 20 20 20 28 23 5f | 42 69 74 43 6c 72 20 28 |. (#_|BitClr (|
|00000b50| 25 69 6e 74 2d 74 6f 2d | 70 74 72 20 23 24 68 69 |%int-to-|ptr #$hi|
|00000b60| 6c 69 74 65 4d 6f 64 65 | 29 20 23 2e 23 24 70 48 |liteMode|) #.#$pH|
|00000b70| 69 6c 69 74 65 42 69 74 | 29 0d 20 20 20 20 28 23 |iliteBit|). (#|
|00000b80| 5f 49 6e 76 65 72 74 52 | 65 63 74 20 72 29 29 29 |_InvertR|ect r)))|
|00000b90| 0d 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |..;;;;;;|;;;;;;;;|
|00000ba0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000bb0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000bc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 0d 3b |;;;;;;;;|;;;;;;.;|
|00000bd0| 3b 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 63 6f 6e |; coordi|nate con|
|00000be0| 76 65 72 73 69 6f 6e 73 | 0d 0d 28 64 65 66 6d 65 |versions|..(defme|
|00000bf0| 74 68 6f 64 20 76 69 65 | 77 2d 74 6f 2d 67 6c 6f |thod vie|w-to-glo|
|00000c00| 62 61 6c 20 28 28 73 76 | 20 73 69 6d 70 6c 65 2d |bal ((sv| simple-|
|00000c10| 76 69 65 77 29 20 70 6f | 69 6e 74 29 0d 20 20 28 |view) po|int). (|
|00000c20| 61 64 64 2d 70 6f 69 6e | 74 73 20 28 76 69 65 77 |add-poin|ts (view|
|00000c30| 2d 70 6f 73 69 74 69 6f | 6e 20 28 76 69 65 77 2d |-positio|n (view-|
|00000c40| 77 69 6e 64 6f 77 20 73 | 76 29 29 20 28 73 75 62 |window s|v)) (sub|
|00000c50| 74 72 61 63 74 2d 70 6f | 69 6e 74 73 20 70 6f 69 |tract-po|ints poi|
|00000c60| 6e 74 20 28 76 69 65 77 | 2d 6f 72 69 67 69 6e 20 |nt (view|-origin |
|00000c70| 73 76 29 29 29 29 0d 0d | 28 64 65 66 6d 65 74 68 |sv))))..|(defmeth|
|00000c80| 6f 64 20 76 69 65 77 2d | 74 6f 2d 67 6c 6f 62 61 |od view-|to-globa|
|00000c90| 6c 20 28 28 73 76 20 77 | 69 6e 64 6f 77 29 20 70 |l ((sv w|indow) p|
|00000ca0| 6f 69 6e 74 29 0d 20 20 | 28 61 64 64 2d 70 6f 69 |oint). |(add-poi|
|00000cb0| 6e 74 73 20 28 76 69 65 | 77 2d 70 6f 73 69 74 69 |nts (vie|w-positi|
|00000cc0| 6f 6e 20 73 76 29 20 28 | 73 75 62 74 72 61 63 74 |on sv) (|subtract|
|00000cd0| 2d 70 6f 69 6e 74 73 20 | 70 6f 69 6e 74 20 28 76 |-points |point (v|
|00000ce0| 69 65 77 2d 6f 72 69 67 | 69 6e 20 73 76 29 29 29 |iew-orig|in sv)))|
|00000cf0| 29 0d 0d 28 64 65 66 6d | 65 74 68 6f 64 20 67 6c |)..(defm|ethod gl|
|00000d00| 6f 62 61 6c 2d 74 6f 2d | 76 69 65 77 20 28 28 73 |obal-to-|view ((s|
|00000d10| 76 20 73 69 6d 70 6c 65 | 2d 76 69 65 77 29 20 70 |v simple|-view) p|
|00000d20| 6f 69 6e 74 29 0d 20 20 | 28 73 75 62 74 72 61 63 |oint). |(subtrac|
|00000d30| 74 2d 70 6f 69 6e 74 73 | 20 20 28 61 64 64 2d 70 |t-points| (add-p|
|00000d40| 6f 69 6e 74 73 20 70 6f | 69 6e 74 20 28 76 69 65 |oints po|int (vie|
|00000d50| 77 2d 6f 72 69 67 69 6e | 20 73 76 29 29 20 28 76 |w-origin| sv)) (v|
|00000d60| 69 65 77 2d 70 6f 73 69 | 74 69 6f 6e 20 28 76 69 |iew-posi|tion (vi|
|00000d70| 65 77 2d 77 69 6e 64 6f | 77 20 73 76 29 29 29 29 |ew-windo|w sv))))|
|00000d80| 0d 0d 28 64 65 66 6d 65 | 74 68 6f 64 20 67 6c 6f |..(defme|thod glo|
|00000d90| 62 61 6c 2d 74 6f 2d 76 | 69 65 77 20 28 28 73 76 |bal-to-v|iew ((sv|
|00000da0| 20 77 69 6e 64 6f 77 29 | 20 70 6f 69 6e 74 29 0d | window)| point).|
|00000db0| 20 20 28 73 75 62 74 72 | 61 63 74 2d 70 6f 69 6e | (subtr|act-poin|
|00000dc0| 74 73 20 20 28 61 64 64 | 2d 70 6f 69 6e 74 73 20 |ts (add|-points |
|00000dd0| 70 6f 69 6e 74 20 28 76 | 69 65 77 2d 6f 72 69 67 |point (v|iew-orig|
|00000de0| 69 6e 20 73 76 29 29 20 | 28 76 69 65 77 2d 70 6f |in sv)) |(view-po|
|00000df0| 73 69 74 69 6f 6e 20 73 | 76 29 29 29 0d 0d 28 64 |sition s|v)))..(d|
|00000e00| 65 66 6d 65 74 68 6f 64 | 20 76 69 65 77 2d 67 6c |efmethod| view-gl|
|00000e10| 6f 62 61 6c 2d 63 6f 72 | 6e 65 72 73 20 28 28 73 |obal-cor|ners ((s|
|00000e20| 76 20 73 69 6d 70 6c 65 | 2d 76 69 65 77 29 29 0d |v simple|-view)).|
|00000e30| 20 20 28 6c 65 74 20 28 | 28 6f 66 66 73 65 74 20 | (let (|(offset |
|00000e40| 28 73 75 62 74 72 61 63 | 74 2d 70 6f 69 6e 74 73 |(subtrac|t-points|
|00000e50| 20 28 76 69 65 77 2d 70 | 6f 73 69 74 69 6f 6e 20 | (view-p|osition |
|00000e60| 28 76 69 65 77 2d 77 69 | 6e 64 6f 77 20 73 76 29 |(view-wi|ndow sv)|
|00000e70| 29 20 28 76 69 65 77 2d | 6f 72 69 67 69 6e 20 73 |) (view-|origin s|
|00000e80| 76 29 29 29 29 0d 20 20 | 20 20 28 76 61 6c 75 65 |v)))). | (value|
|00000e90| 73 20 6f 66 66 73 65 74 | 20 28 61 64 64 2d 70 6f |s offset| (add-po|
|00000ea0| 69 6e 74 73 20 28 76 69 | 65 77 2d 73 69 7a 65 20 |ints (vi|ew-size |
|00000eb0| 73 76 29 20 6f 66 66 73 | 65 74 29 29 29 29 0d 0d |sv) offs|et))))..|
|00000ec0| 28 64 65 66 6d 65 74 68 | 6f 64 20 76 69 65 77 2d |(defmeth|od view-|
|00000ed0| 67 6c 6f 62 61 6c 2d 63 | 6f 72 6e 65 72 73 20 28 |global-c|orners (|
|00000ee0| 28 73 76 20 77 69 6e 64 | 6f 77 29 29 0d 20 20 28 |(sv wind|ow)). (|
|00000ef0| 6c 65 74 20 28 28 6f 66 | 66 73 65 74 20 28 73 75 |let ((of|fset (su|
|00000f00| 62 74 72 61 63 74 2d 70 | 6f 69 6e 74 73 20 28 76 |btract-p|oints (v|
|00000f10| 69 65 77 2d 70 6f 73 69 | 74 69 6f 6e 20 73 76 29 |iew-posi|tion sv)|
|00000f20| 20 28 76 69 65 77 2d 6f | 72 69 67 69 6e 20 73 76 | (view-o|rigin sv|
|00000f30| 29 29 29 29 0d 20 20 20 | 20 28 76 61 6c 75 65 73 |)))). | (values|
|00000f40| 20 6f 66 66 73 65 74 20 | 28 61 64 64 2d 70 6f 69 | offset |(add-poi|
|00000f50| 6e 74 73 20 28 76 69 65 | 77 2d 73 69 7a 65 20 73 |nts (vie|w-size s|
|00000f60| 76 29 20 6f 66 66 73 65 | 74 29 29 29 29 0d 0d 3b |v) offse|t))))..;|
|00000f70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000f80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000f90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000fa0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 0d 3b 3b 20 77 |;;;;;;;;|;;;.;; w|
|00000fb0| 69 6e 64 6f 77 20 6d 61 | 6e 61 67 65 72 0d 0d 28 |indow ma|nager..(|
|00000fc0| 64 65 66 63 6c 61 73 73 | 20 57 4d 67 72 2d 76 69 |defclass| WMgr-vi|
|00000fd0| 65 77 20 28 73 69 6d 70 | 6c 65 2d 76 69 65 77 29 |ew (simp|le-view)|
|00000fe0| 20 28 29 29 0d 0d 28 64 | 65 66 6d 65 74 68 6f 64 | ())..(d|efmethod|
|00000ff0| 20 76 69 65 77 2d 6f 72 | 69 67 69 6e 20 28 28 73 | view-or|igin ((s|
|00001000| 76 20 20 57 4d 67 72 2d | 76 69 65 77 29 29 20 28 |v WMgr-|view)) (|
|00001010| 64 65 63 6c 61 72 65 20 | 28 69 67 6e 6f 72 65 20 |declare |(ignore |
|00001020| 73 76 29 29 20 23 40 28 | 30 20 30 29 29 0d 0d 28 |sv)) #@(|0 0))..(|
|00001030| 64 65 66 6d 65 74 68 6f | 64 20 76 69 65 77 2d 63 |defmetho|d view-c|
|00001040| 6c 69 70 2d 72 65 67 69 | 6f 6e 20 28 28 73 76 20 |lip-regi|on ((sv |
|00001050| 57 4d 67 72 2d 76 69 65 | 77 29 29 0d 20 20 28 64 |WMgr-vie|w)). (d|
|00001060| 65 63 6c 61 72 65 20 28 | 69 67 6e 6f 72 65 20 73 |eclare (|ignore s|
|00001070| 76 29 29 0d 20 20 28 23 | 5f 53 65 74 52 65 63 74 |v)). (#|_SetRect|
|00001080| 52 67 6e 20 2a 73 69 6d | 70 6c 65 2d 76 69 65 77 |Rgn *sim|ple-view|
|00001090| 2d 63 6c 69 70 2d 72 65 | 67 69 6f 6e 2a 20 2d 33 |-clip-re|gion* -3|
|000010a0| 32 37 36 38 20 2d 33 32 | 37 36 38 20 33 32 37 36 |2768 -32|768 3276|
|000010b0| 37 20 33 32 37 36 37 29 | 0d 20 20 2a 73 69 6d 70 |7 32767)|. *simp|
|000010c0| 6c 65 2d 76 69 65 77 2d | 63 6c 69 70 2d 72 65 67 |le-view-|clip-reg|
|000010d0| 69 6f 6e 2a 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |ion*)..(|defmetho|
|000010e0| 64 20 77 70 74 72 20 28 | 28 73 76 20 20 57 4d 67 |d wptr (|(sv WMg|
|000010f0| 72 2d 76 69 65 77 29 29 | 0d 20 20 28 69 66 20 28 |r-view))|. (if (|
|00001100| 70 6f 69 6e 74 65 72 70 | 20 28 73 6c 6f 74 2d 76 |pointerp| (slot-v|
|00001110| 61 6c 75 65 20 73 76 20 | 27 77 70 74 72 29 29 0d |alue sv |'wptr)).|
|00001120| 20 20 20 20 28 73 6c 6f | 74 2d 76 61 6c 75 65 20 | (slo|t-value |
|00001130| 73 76 20 27 77 70 74 72 | 29 0d 20 20 20 20 28 73 |sv 'wptr|). (s|
|00001140| 65 74 66 20 28 73 6c 6f | 74 2d 76 61 6c 75 65 20 |etf (slo|t-value |
|00001150| 73 76 20 27 77 70 74 72 | 29 20 28 25 67 65 74 2d |sv 'wptr|) (%get-|
|00001160| 70 74 72 20 28 25 69 6e | 74 2d 74 6f 2d 70 74 72 |ptr (%in|t-to-ptr|
|00001170| 20 23 24 57 4d 67 72 50 | 6f 72 74 29 29 29 29 29 | #$WMgrP|ort)))))|
|00001180| 0d 0d 28 64 65 66 76 61 | 72 20 2a 57 4d 67 72 2d |..(defva|r *WMgr-|
|00001190| 76 69 65 77 2a 20 28 6d | 61 6b 65 2d 69 6e 73 74 |view* (m|ake-inst|
|000011a0| 61 6e 63 65 20 27 57 4d | 67 72 2d 76 69 65 77 29 |ance 'WM|gr-view)|
|000011b0| 29 0d 0d 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)..;;;;;|;;;;;;;;|
|000011c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000011d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000011e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000011f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 0d 00 00 00 00 00 |;;;;;;;;|;.......|
|00001200| 00 00 01 00 00 00 01 5a | 00 00 00 5a 00 00 00 46 |.......Z|...Z...F|
|00001210| 00 00 00 11 12 43 44 20 | 52 65 6d 6f 74 65 20 50 |.....CD |Remote P|
|00001220| 72 6f 67 72 61 6d 73 6f | 02 00 00 00 50 72 6f 47 |rogramso|....ProG|
|00001230| 13 73 69 6d 70 6c 65 2d | 76 69 65 77 2d 63 65 2e |.simple-|view-ce.|
|00001240| 6c 69 73 70 02 00 00 00 | 54 45 58 54 43 43 4c 32 |lisp....|TEXTCCL2|
|00001250| 00 00 54 45 58 54 43 43 | 4c 32 40 00 00 00 00 00 |..TEXTCC|L2@.....|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 a4 bd 99 1e 00 00 | 00 00 00 00 01 a0 04 e0 |........|........|
|00001280| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 14 00 |........|........|
|00001290| 00 00 00 11 0e 43 6c 69 | 70 62 6f 61 72 64 20 46 |.....Cli|pboard F|
|000012a0| 69 6c 65 64 02 00 00 00 | 43 4c 49 50 4d 41 43 53 |iled....|CLIPMACS|
|000012b0| 11 00 01 40 01 40 00 00 | 00 00 00 a3 00 00 00 00 |...@.@..|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| a5 42 5c 15 a4 bc 4d f1 | 00 00 00 00 00 00 00 00 |.B\...M.|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 0a 00 01 00 16 | 0a 00 01 00 00 00 00 00 |........|........|
|00001310| 00 48 00 0a 43 6f 75 72 | 69 65 72 00 00 00 00 00 |.H..Cour|ier.....|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 06 00 08 | 00 67 01 bb 02 9c 03 e5 |........|.g......|
|00001340| 00 67 01 bb 02 9c 03 e5 | 00 00 00 00 00 00 03 9d |.g......|........|
|00001350| 00 00 03 9d 00 00 00 dd | 01 00 00 00 01 00 00 00 |........|........|
|00001360| 01 5a 00 00 00 5a 00 00 | 00 46 00 37 d3 2c 07 5a |.Z...Z..|.F.7.,.Z|
|00001370| 00 00 00 1c 00 46 00 01 | 46 52 45 44 00 00 00 12 |.....F..|FRED....|
|00001380| 4d 50 53 52 00 00 00 1e | 00 02 ff ff 00 00 00 00 |MPSR....|........|
|00001390| 00 00 00 00 03 ed ff ff | 00 00 00 0e 00 37 ea 08 |........|.....7..|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+